package com.tony.blog.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tony.blog.model.entity.SysUserRoleEntity;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: SysUserRoleService
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/25/16:36
 * @Description:
 */
public interface SysUserRoleService extends IService<SysUserRoleEntity> {

    /**
    * @Description: deleteBatch 批量删除角色用户信息
    * @Param: [roleIds]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/25 16:46
    */
    boolean deleteBatch(List<Long> roleIds);

    /**
    * @Description: saveOrUpdate 新增用户角色信息
    * @Param: [userId, roleIds]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/26 14:31
    */
    boolean saveOrUpdate(Long userId, List<Long> roleIds);

    /**
    * @Description: queryRoleIdList 根据userId获取用户角色信息
    * @Param: [userId]
    * @return: java.util.List<java.lang.Long>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/26 21:26
    */
    List<Long> queryRoleIdList(Long userId);
}
